package demo01;

public class Demo02Method {
    public static void main(String[] args) {
        int[] array = { 5, 15, 25, 20, 100};
        int max = array[0];
        for (int i = 0; i < array.length ; i++) {
            if (array[i] < max){
                max = array[i];
            }


        }
        System.out.println(max);
    }
}
